<template>
  <el-image :src="src">

    <template slot="error">
      <img src="./head.jpg">
    </template>
  </el-image>
</template>

<script>
export default{
  props:{
    src:{
      type:String,
      required:true
    }
  }
}

</script>

<style scoped>
/deep/ img{
  width: 100px;
  height: 100px;
  border-radius: 50%;
}
</style>